package com.slc.filemanage.config;


import java.io.*;
import java.util.Properties;

public class Common {
    public static String uploadDir = "";

    static {
        Properties properties = new Properties();
        try {
            InputStream inputStream = new FileInputStream(new File(Common.class.getClassLoader().getResource("common.properties").getFile()));
            properties.load(inputStream);
            uploadDir = properties.getProperty("uploadDir");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
